package com.ndp.fb.rdb.api;

import com.ndp.fb.rdb.model.EcMaterielTag;

import java.util.List;

/**
 * Created by jacky.cheng on 2016/5/31.
 */
public interface EcMaterielTagRdbService {
    List<EcMaterielTag> findTagsByMaterielId(Long materialId);

    List<EcMaterielTag> findByTagNameLike(Long orgId, String q);

    EcMaterielTag findByOrgIdTagName(Long orgId, String tagName);

    Long save(EcMaterielTag tag);

    void saveRelation(Long templateId, Long tagId);
}
